﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LdCms.Plugins.Map.Tencent.Models
{
    public class GeocoderLocationResult
    {
        public int status { get; set; }
        public string message { get; set; }
        public string request_id { get; set; }
        public GeocoderLocationResultResult result { get; set; }


    }
    public class GeocoderLocationResultResult
    {
        public GeocoderLocationResultLocation location { get; set; }
        public string address { get; set; }
        public GeocoderLocationResultResultFormattedAddresses formatted_addresses { get; set; }
        public GeocoderLocationResultResultAddressComponent address_component { get; set; }
        public GeocoderLocationResultResultADInfo ad_info { get; set; }
        public GeocoderLocationResultResultAddressReference address_reference { get; set; }
        public int poi_count { get; set; }
        public List<GeocoderLocationResultResultPois> pois { get; set; }

    }

    public class GeocoderLocationResultLocation
    {
        public decimal lat { get; set; }
        public decimal lng { get; set; }
    }
    public class GeocoderLocationResultFamousArea
    {
        public string id { get; set; }
        public string title { get; set; }
        public GeocoderLocationResultLocation location { get; set; }
        public decimal _distance { get; set; }
        public string _dir_desc { get; set; }
    }

    public class GeocoderLocationResultResultFormattedAddresses
    {
        public string recommend { get; set; }
        public string rough { get; set; }
    }
    public class GeocoderLocationResultResultAddressComponent
    {
        public string 中国 { get; set; }
        public string province { get; set; }
        public string city { get; set; }
        public string district { get; set; }
        public string street { get; set; }
        public string street_number { get; set; }
    }
    public class GeocoderLocationResultResultADInfo
    {
        public string nation_code { get; set; }
        public string adcode { get; set; }
        public string city_code { get; set; }
        public string name { get; set; }
        public GeocoderLocationResultLocation location { get; set; }
        public string nation { get; set; }
        public string province { get; set; }
        public string city { get; set; }
        public string district { get; set; }
    }
    public class GeocoderLocationResultResultAddressReference
    {
        public GeocoderLocationResultFamousArea business_area { get; set; }
        public GeocoderLocationResultFamousArea famous_area { get; set; }
        public GeocoderLocationResultFamousArea town { get; set; }
        public GeocoderLocationResultFamousArea landmark_l1 { get; set; }
        public GeocoderLocationResultFamousArea landmark_l2 { get; set; }
        public GeocoderLocationResultFamousArea street { get; set; }
        public GeocoderLocationResultFamousArea street_number { get; set; }
        public GeocoderLocationResultFamousArea crossroad { get; set; }
        public GeocoderLocationResultFamousArea water { get; set; }
    }
    public class GeocoderLocationResultResultPois
    {
        public string id { get; set; }
        public string title { get; set; }
        public string address { get; set; }
        public string category { get; set; }
        public GeocoderLocationResultLocation location { get; set; }
        public GeocoderLocationResultResultPoisADInfo ad_info { get; set; }
        public decimal _distance { get; set; }
        public string _dir_desc { get; set; }


    }
    public class GeocoderLocationResultResultPoisADInfo
    {
        public string adcode { get; set; }
        public string province { get; set; }
        public string city { get; set; }
        public string district { get; set; }
    }


}
